#!/usr/bin/
#coding=gbk

'''
@summary: 

@author: huxiufeng
'''
import sys
import time


def get_mem(lst, onepack, sleeptime):
    try:
        i = 0
        while True:
            newpack = str(i)+onepack
            lst.append(newpack)
            i += 1
    except Exception, e:
        print "get_mem err: ", e,"end"
    
    print "now sleep ", sleeptime
    time.sleep(sleeptime)
    print "out of sleep , and return"
    return
    


#----------------------It is a split line--------------------------------------

def main():
    #usage python fulmem.py [sleeptime]
    sleeptime = 100
    if len(sys.argv) > 1:
        sleeptime = int(sys.argv[1])
    #initial    
    lst = []
    onepack = ''
    for _ in range(1):
        onepack += 'abcdefghijklmnopqrstuvwxy'
        
    #get_mem
    get_mem(lst, onepack, sleeptime)
    
    
#----------------------It is a split line--------------------------------------

if __name__ == "__main__":
    main()
    print "It's ok"